Path: / {BASE} / resource / {uuid}

Returns a link to a local resource (data or content) with the given uuid and an accepted return type

Path parameters:
uuid ([^#?]+) - , a unique identifier (must not contain url specific characters like /,# etc.)

Resource Methods
Method Summary
NameDescription
POST /{BASE}/resource/{uuid}Creates new local resource with given uuid.
GET /{BASE}/resource/{uuid}Returns a link to a local resource (data or content) with the given uuid and an accepted return type
PUT /{BASE}/resource/{uuid}Returns a Link where the given data (metadata or content) can be put to the local resource
DELETE /{BASE}/resource/{uuid}Delete local resource with given uuid

Method Detail

POST /{BASE}/resource/{uuid}

Creates new local resource with given uuid.

HTTP Example:
POST /{BASE}/resource/{uuid}
API Example:

ResourceWebService.postLocal({'uuid': /* uuid a unique identifier (must not contain url specific characters like /,# etc.) */});

Output:
Response - HTTP response (body is a String message)
HTTP return codes:
201 - new resource created
200 - resource already exists
500 - Internal Error
HTTP response headers:
Location - the url of the new/found resource

GET /{BASE}/resource/{uuid}

Returns a link to a local resource (data or content) with the given uuid and an accepted return type

HTTP Example:
GET /{BASE}/resource/{uuid}
Accept: …
API Example:

ResourceWebService.getLocal({'uuid': /* uuid , a unique identifier (must not contain url specific characters like /,# etc.) */,
  'Accept': /* Returns a link to a local resource (data or content) with the given uuid and an accepted return type */});

Output:
Response - a link to a local resource's data or content
Header parameters:
Accept
HTTP return codes:
303 - resource can be found in the requested format under Location
404 - resource cannot be found
406 - resource cannot be found in the given format
500 - Internal Error
HTTP response headers:
Location - (for HTTP 303) the url of the resource in the requested format
Content-Type - (for HTTP 406) a list of available types (content and meta)
HTTP request headers:
Accept - accepted mimetypes; value must follow the pattern (.+/.+(;rel=(content|meta))?,)+

PUT /{BASE}/resource/{uuid}

Returns a Link where the given data (metadata or content) can be put to the local resource

HTTP Example:
PUT /{BASE}/resource/{uuid}
Content-Type: …
API Example:

ResourceWebService.putLocal({'uuid': /* uuid , a unique identifier (must not contain url specific characters like /,# etc.) */,
  'Content-Type': /* Returns a Link where the given data (metadata or content) can be put to the local resource */});

Output:
Response - a link where the data can be put (depends on Content-Type)
Header parameters:
Content-Type
HTTP return codes:
303 - resource in given format can be put under Location
404 - resource cannot be found
415 - Content-Type is not supported
500 - Internal Error
HTTP response headers:
Location - (for HTTP 303) the url where data can be put
HTTP request headers:
Content-Type - type of the body; value must follow the pattern .+/.+(;rel=(content|meta))?

DELETE /{BASE}/resource/{uuid}

Delete local resource with given uuid

HTTP Example:
DELETE /{BASE}/resource/{uuid}
API Example:

ResourceWebService.deleteResourceLocal({'uuid': /* uuid , a unique identifier (must not contain url specific characters like /,# etc.) */});

Output:
Response - HTTP response (success or error)
HTTP return codes:
200 - resource deleted
404 - resource not found